package com.echo.im.common.vo.message;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;


import java.util.Date;

/**
 *
 * @author echo
 * @date 2024-08-18
 */
@Data
@Schema(description = "私聊消息VO")
@NoArgsConstructor
public class PrivateMessageVO extends MessageVo{

    @Schema(description = " 消息id")
    private Long id;

    @Schema(description = " 发送者id")
    private Long sendId;

    @Schema(description = " 接收者id")
    private Long recvId;

    @Schema(description = " 发送内容")
    private String content;

    @Schema(description = "消息内容类型 MessageType")
    private Integer type;

    @Schema(description = " 状态 MessageStatus")
    private Integer status;

    @Schema(description = " 发送时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sendTime;
}
